/**
* 版权声明：厦门睿商网络科技有限公司 版权所有 违者必究
* 日    期：2020-04-11
*/
package com.rzico.order.mapper;

import com.rzico.base.BaseMapper;
import com.rzico.order.entity.WarehouseStock;
import com.rzico.order.model.WarehouseStockVo;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import java.util.Map;
/**
 * <pre>
 *   库存表映射类
 * </pre>
 *
 * @author Rzico Boot
 * @version 1.0
 */
@Mapper
public interface WarehouseStockMapper extends BaseMapper<WarehouseStock, String> {

   List<WarehouseStock> selectList(Map<String, Object> params);

   List<WarehouseStockVo> selectLastStockList(Map<String, Object> params);

   int pendingStockPlus(WarehouseStock warehouseStock);

   int pendingStockSubtract(WarehouseStock warehouseStock);

   int allocatedStockPlus(WarehouseStock warehouseStock);

   int allocatedStockSubtract(WarehouseStock warehouseStock);

   int stockPlusAndPendingSubtract(WarehouseStock warehouseStock);

   int stockSubtractAndAllocatedSubtract(WarehouseStock warehouseStock);

   int stockPlusAndAllocatedPlus(WarehouseStock warehouseStock);

   int stockSubtractAndPendingPlus(WarehouseStock warehouseStock);
}
